package primitives;

import utility.Intersection;
import utility.Vector3;


/*
 * Not fully implementing Sphere yet!
 */
public class Sphere extends Shape{

	public static final String[] dimensionNames = {"radius"};
	public double[] dimensions;
	public Vector3[] vectors;

	private final int RADIUS = 2;
	
	private static final double INIT_VALUE = 1.0;
	
	public Sphere() {
		this(null);
	}
	
	public Sphere(double[] dimensions) {
		if(dimensions == null || dimensions.length != dimensionNames.length) {
			this.dimensions = new double[dimensionNames.length];
			for(int i = 0; i < this.dimensions.length; i++) {
				this.dimensions[i] = INIT_VALUE;
			}
		} else {
			this.dimensions = dimensions;
		}
	}
	
	public double getRadius() {
		return dimensions[RADIUS];
	}
	
	public Vector3[] getVectors() {
		return vectors;
	}

	@Override
	public Intersection<Patch,Double> intersects(Vector3 eyePosition, Vector3 direction) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void initPatches() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void initLight() {
		// TODO Auto-generated method stub
		
	}

}
